#encoding:utf-8
from wtforms import Form
from flask import jsonify

class BaseForm(Form):
    def get_error(self):
        message = self.errors.popitem()[1][0]
        return message
    def validate(self):
        return super(BaseForm, self).validate()